package com.starrk.myblog.foreground.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Starrk
 * @since 2018-03-25
 */
@TableName("role_blogger")
public class RoleBlogger extends Model<RoleBlogger> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("blogger_id")
    private Long bloggerId;
    @TableField("role_id")
    private Long roleId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBloggerId() {
        return bloggerId;
    }

    public void setBloggerId(Long bloggerId) {
        this.bloggerId = bloggerId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RoleBlogger{" +
        ", id=" + id +
        ", bloggerId=" + bloggerId +
        ", roleId=" + roleId +
        "}";
    }
}
